package com.campsys.domain.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
public class StudentAddParam {

    @NotBlank(message = "学生姓名不为空")
    private String stuName;
    private String fromPlace;
    private String parentPhone;
    private String currentGrade;
    private String isFirst;
    private String gender;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date birthday;
    private String phone;
    private String email;
    private String comment;
}
